<?php
/**
 * DefaultControllerTest.php
 *
 * Used to perform unit testing of the DefaultController class
 * @package PHPZendOpcacheBundle
 * @author Steven King <kingrst@gmail.com>
 * @copyright Copyright (C) 2014, Steven King
 * @license http://opensource.org/licenses/GPL-3.0 GNU General Public License, version 3
 */

namespace PHP\ZendOpcacheBundle\Tests\Controller;

use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;

/**
 * Class DefaultControllerTest
 *
 * Perform unit tests on the DefaultController class
 * @package PHPZendOpcacheBundle\Tests
 * @subpackage Controller\DefaultControllerTest
 * @category class
 * @author Steven King <kingrst@gmail.com>
 */
class DefaultControllerTest extends WebTestCase
{
    public function testIndex()
    {
        $client = static::createClient();

        $crawler = $client->request('GET', '/hello/Fabien');

        $this->assertTrue($crawler->filter('html:contains("Hello Fabien")')->count() > 0);
    }
}
